import java.io.IOException;

public class CommonFriends {
    public static void main(String[] args)
            throws InterruptedException, IOException, ClassNotFoundException {
        String in = args[0];
        String out = args[1];
        String temp = "output/temp" + out.charAt(out.length() - 1);
        if (SameFriend.run(in, temp)) {
            FriendsGroup.run(temp, out);
        }
    }
}
